//
//  PlacesViewController.h
//  Places
//
//  Created by alex on 9/21/10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "PlaceDescriptionController.h"
#import "TouchView.h"
#import "TouchViewDelegate.h"
#import "PlaceAnnotation.h"
#import "PlaceData.h"

@interface PlacesViewController : UIViewController <MKMapViewDelegate, TouchViewDelegate> {
	IBOutlet MKMapView *mapView;
	IBOutlet UIToolbar *toolbar;
	IBOutlet UIBarButtonItem *placeButton;
	
	PlaceDescriptionController *placeDescriptionController;
	
	TouchView *touchView;
	UIImage *annotationImage;
	UIButton *annotationButton;
}

@property (nonatomic, retain) MKMapView *mapView;
@property (nonatomic, retain) UIToolbar *toolbar;
@property (nonatomic, retain) UIBarButtonItem *placeButton;

@property (nonatomic, readonly) TouchView *touchView;

@property (nonatomic, readonly) UIImage *annotationImage;
@property (nonatomic, readonly) UIButton *annotationButton;

- (IBAction)placeMark;
- (void)removeAnnotation:(id <MKAnnotation>)annotation;

@end

